package org.openspml.providers.one_c.api.connection;

import org.openspml.providers.one_c.api.users.InfoBaseUsersManager;

import com.jacob.com.Dispatch;


/**
 * @author <A href="mailto:abashev at gmail dot com">Alexey Abashev</A>
 * @version $Id$
 */
public class GlobalContext extends Dispatch {
	public GlobalContext(Dispatch dispatch) {
		super(dispatch);
	}
	
	public InfoBaseUsersManager getInfoBaseUsers() {
		return new InfoBaseUsersManager(Dispatch.call(this, "InfoBaseUsers").toDispatch());
	}
	
	public Metadata getMetadata() {
		return new Metadata(Dispatch.call(this, "Metadata").toDispatch());
	}
}
